package com.xiaoxi.decoratormode.border;

import com.xiaoxi.decoratormode.display.Display;

/**
 * @Author xiaoxi
 * @ProjectName design_mode
 * @PackageName com.xiaoxi.decoratormode.border
 * @ClassName Border
 * @Description TODO
 * @Date 2023/3/14 17:02
 * @Version 1.0
 */
public abstract class Border extends Display {
    protected Display display;

    public Border(Display display) {
        this.display = display;
    }

    @Override
    public int getColumns() {
        return display.getColumns();
    }

    @Override
    public int getRows() {
        return display.getRows();
    }
}
